package Demo16_30.Test30;

import java.io.IOException;
import java.util.Scanner;

/**
 * Created by 14229 on 2020/1/31.
 */
public class Test {
    public static void main(String[] args) throws IOException {
        show01();
    }
    public  static void show01() throws IOException {

        Scanner sc = new Scanner( System.in);

        while (true){
            System.out.println("1.账号登陆");
            System.out.println("2.游客浏览");
            System.out.println("请输入程序序号：");
            int num = sc.nextInt();
            if(num==1){
                Util.login();
            }else if(num ==2){
                Util.otherLogin();
            }else {
                System.out.println("请输入正确浏览方式！");
            }


        }
    }
}
